﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace StartMVC.Models
{
    public class MemberLoginViewModel
    {
        [DisplayName("会员帐号")]
        [Required(ErrorMessage = "请输入{0}")]
        [MaxLength(250, ErrorMessage = "Email地址长度不能超过250个字符")]
        [DataType(DataType.EmailAddress, ErrorMessage = "请输入您的Email地址")]
        public string email { get; set; }


        [DisplayName("会员密码")]
        [Required(ErrorMessage = "请输入{0}")]
        [DataType(DataType.Password)]
        public string password { get; set; }
    }
}